package com.kartoshka.utils 
{
	import flash.utils.getQualifiedClassName;

	/**
	 * @author Alexander Zats, 2009
	 */
	public class CoreUtil 
	{

		private static var _id : int = 0;

		public static function getUid( instance : Object ) : String
		{
			var qName : String = getQualifiedClassName( instance );
			if ( ! isNaN( Number( qName.substr( qName.length - 1 ) ) ) ) qName += "_"; 
			return qName + _id++; 
		}
	}
}
